home *** CD-ROM | disk | FTP | other *** search
- set sphereCount 3
- set sphereRadius .1
- set sphereSpacing .25
-
- # if it returns 1, continue, if it returns 0, (nicely) abort the script
- if {[loadControlPanelModallyAndClose starCount.nib]} {} {return }
-
- proc buildSpheres { sCount sSpacing sRadius } {
-
- for {set i 0} {$i < $sCount} {incr i} \
- { for {set j 0} {$j < $sCount} {incr j} \
- { for {set k 0} {$k < $sCount} {incr k} \
- { AttributeBegin
- set newX [expr {$i * $sSpacing}]
- set newY [expr {$j * $sSpacing}]
- set newZ [expr {$k * $sSpacing}]
- Translate $newX $newY $newZ
- Sphere $sRadius [expr {-$sRadius}] $sRadius 360
- AttributeEnd
- }
- }
- }
- }
-
- startShape theGalaxy
- EveProc {buildSpheres $sphereCount $sphereSpacing $sphereRadius }
- endShape
-
- loadControlPanel starFrob.nib
-
-